package com.bbx.api.sdk.net.passeger.conn;

import java.io.InputStream;

import android.content.Context;
import com.bbx.api.sdk.model.passanger.Return.ActivityContent;
import com.bbx.api.sdk.net.base.BaseNetwork;
import com.bbx.api.sdk.net.base.GeneralParser;
/** 
 * @Path com.bbx.api.sdk.net.passeger.conn.ActivityNet.java
 * @Author 严旭文
 * @Date 2016-5-24 上午9:40:23
 * @Company 蓝海（福建）信息技术有限公司
 * @Description
 * 活动
 */
public class ActivityNet  extends BaseNetwork {

	public ActivityNet(Context context, String datas) {
		super(context, false);
		setData(datas);
	}
	public ActivityNet(Context context) {
		super(context, false);
	}
    public void setData(String datas){
    	super.setData(datas);
		// TODO Auto-generated constructor stub
		url = ACTIVITY_Url;
		InputStream inputStream = getContentWithPOST((datas));
		if (inputStream != null) {
			parser = new GeneralParser(context, inputStream);
		}
    }
	@Override
	public Object getData() {
		return parser.getData(ActivityContent.class);
	}

}
